package com.appbee.cm.client.startup.impl;

import javax.inject.Inject;
import javax.inject.Provider;

import com.appbee.cm.shared.dataservice.DataRequestFactory;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;

public class DataRequestFactoryProvider implements Provider<DataRequestFactory>
{
	private final DataRequestFactory rf = GWT.create(DataRequestFactory.class);
	@Inject
	public DataRequestFactoryProvider(EventBus eventBus)
	{
		rf.initialize(eventBus);
	}
	
	@Override
	public DataRequestFactory get()
	{
		return rf;
	}

}
